package com.lc.tgxm;

import com.lc.tgxm.util.GLobalConstant;
import com.lc.tgxm.util.Log;
import com.zcx.helper.app.AppApplication;
import com.zcx.helper.app.AppInit;
import com.zcx.helper.glide.GlideLoader;

/**
 * BaseApplication
 * Created by Lei on 2016/8/26.
 */
@AppInit(name = GLobalConstant.PROJECT_NAME, log = GLobalConstant.LOGABLE)
public class BaseApplication extends AppApplication {
    public static BasePreferences basePreferences;

    @Override
    public void onCreate() {
        super.onCreate();

        // 显示日志
        Log.setDebugOn(GLobalConstant.LOGABLE);
        // 初始化Glide
        GlideLoader.getInstance().init(R.mipmap.zwt);
        // 初始化SharedPreferences
        basePreferences = new BasePreferences(GLobalConstant.PROJECT_NAME);

    }


}